/*
 * Log.h
 *
 *  Created on: Aug 12, 2014
 *      Author: burek
 */

#ifndef LOG_H_
#define LOG_H_

#include <cstdarg>

#define LOG_LINES (64)
#define LOG_LINE_LENGTH (1024)

void ROpenLogFile(const char * fileName);
void RCloseLog();

void RLog(const char * fmt, ...);
void RError(const char * fmt, ...);
void RInfo(const char * fmt, ...);

void setLogCallback(void (*func)(const char *));

void startLogTiming();

const char * getLogLine(int n);
int getLogLineCount();

#endif /* LOG_H_ */
